Optimal. Leaf size=69 \[ \frac{(a \sec (c+d x)+a)^{n+2} \text{Hypergeometric2F1}(1,n+2,n+3,\sec (c+d x)+1)}{a^2 d (n+2)}+\frac{(a \sec (c+d x)+a)^{n+2}}{a^2 d (n+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0645631, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3880, 80, 65} \[ \frac{(a \sec (c+d x)+a)^{n+2} \, _2F_1(1,n+2;n+3;\sec (c+d x)+1)}{a^2 d (n+2)}+\frac{(a \sec (c+d x)+a)^{n+2}}{a^2 d (n+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3880
Rule 80
Rule 65
Rubi steps
\begin{align*} \int (a+a \sec (c+d x))^n \tan ^3(c+d x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{(-a+a x) (a+a x)^{1+n}}{x} \, dx,x,\sec (c+d x)\right )}{a^2 d}\\ &=\frac{(a+a \sec (c+d x))^{2+n}}{a^2 d (2+n)}-\frac{\operatorname{Subst}\left (\int \frac{(a+a x)^{1+n}}{x} \, dx,x,\sec (c+d x)\right )}{a d}\\ &=\frac{(a+a \sec (c+d x))^{2+n}}{a^2 d (2+n)}+\frac{\, _2F_1(1,2+n;3+n;1+\sec (c+d x)) (a+a \sec (c+d x))^{2+n}}{a^2 d (2+n)}\\ \end{align*}
Mathematica [A] time = 0.0478846, size = 49, normalized size = 0.71 \[ \frac{(\sec (c+d x)+1)^2 (a (\sec (c+d x)+1))^n (\text{Hypergeometric2F1}(1,n+2,n+3,\sec (c+d x)+1)+1)}{d (n+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.244, size = 0, normalized size = 0. \begin{align*} \int \left ( a+a\sec \left ( dx+c \right ) \right ) ^{n} \left ( \tan \left ( dx+c \right ) \right ) ^{3}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (d x + c\right ) + a\right )}^{n} \tan \left (d x + c\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sec \left (d x + c\right ) + a\right )}^{n} \tan \left (d x + c\right )^{3}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a \left (\sec{\left (c + d x \right )} + 1\right )\right )^{n} \tan ^{3}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (d x + c\right ) + a\right )}^{n} \tan \left (d x + c\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]